Part Number Hot Search : 
P7831124 DTRPBF V300A1 XXXXXX 1206G RXE250 MC74HC1 CENB1030
Product Description
Full Text Search
 

To Download M34250E2FP Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
DESCRIPTION
The 4250 Group is a 4-bit single-chip microcomputer designed with CMOS technology. Its CPU is that of the 720 series using a simple instruction set. The computer is equipped with one 8-bit timer which has a reload register and the interrupt function. The various microcomputers in the 4250 Group include variations of the built-in memory type as shown in the table below.
* Timer Timer 1 ................................ 8-bit timer with a reload register * Interrupt ................................................................... 2 sources * CR oscillation circuit (Capacitor and Resistor connected externally) * Logic operation instruction * RAM back-up function * Key-on wakeup function (ports G and S, INT pin)
FEATURES
* Minimum instruction execution time ............................. 1.0 s (at 4.0 MHz system clock frequency, VDD=4.5 V to 5.5 V) * Supply voltage 4.5 V to 5.5 V (at 4.0 MHz system clock frequency) 2.5 V to 5.5 V (at 1.0 MHz system clock frequency) 2.2 V to 5.5 V (at 1.0 MHz system clock frequency: only for Mask ROM version) ROM (PROM) size (! 9 bits) 2048 words 2048 words
APPLICATION
Electric household appliances, consumer electronics products (mouse, etc.)
Product M34250M2-XXXFP M34250E2-XXXFP *
RAM size (! 4 bits) 64 words 64 words
Package 20P2N-A 20P2N-A
ROM type Mask ROM One Time PROM
*: Shipped after writing (shipped in blank: M34250E2FP)
PIN CONFIGURATION (TOP VIEW)
M34250M2-XXXFP
VDD VSS XIN XOUT CNVSS RESET F0 F1 G0/INT G1/TOUT
1 2
20 19
D0 D1 D2/C D3/K S0 S1 S2 S3 G3 G2
M34250M2-XXXFP
MITSUBISHI ELECTRIC
3 4 5 6 7 8 9 10
18 17 16 15 14 13 12 11
Outline 20P2N-A
2
BLOCK DIAGRAM
2
4 4
4
I/O port
Port F Port G Port D Port S
Internal peripheral functions
Timer XIN -XOUT System clock generating circuit
Timer 1 (8 bits)
Memory
ROM
(Note) (2048 words ! 9 bits)
MITSUBISHI ELECTRIC
720 series CPU core
ALU (4 bits)
Register A (4 bits) Register B (4 bits) Register E (8 bits) Register D (3 bits) Stack register (SK) (4 levels) Interrupt stack register (SDP) (1 level)
RAM
(64 words ! 4 bits)
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Note: PROM 2048 words ! 9 bits
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
PERFORMANCE OVERVIEW
Parameter Number of basic instructions Function 70 Minimum instruction execution time 1.0 s (at 4.0 MHz system clock frequency) (Refer to the electrical characteristics because the minimum instruction execution time depends on the supply voltage.) Memory sizes ROM M34250M2/ 2048 words ! 9 bits RAM Input/Output ports D0-D3 S0-S3 C K F0, F1 G0-G3 INT TOUT Timer Interrupt Timer 1 Sources Nesting Oscillation circuit E2 I/O I/O I/O I/O I/O I/O Input Output 64 words ! 4 bits Four independent I/O ports; ports D2 and D3 are also used as ports C and K, respectively. 4-bit I/O port 1-bit I/O port; port C is also used as port D2. 1-bit I/O port; port K is also used as port D3. 2-bit I/O port 4-bit I/O port; ports G0 and G1 are also used as pins INT and TOUT. Interrupt input; INT pin is also used as port G0. Timer output; TOUT pin is also used as port G1. 8-bit timer with a reload register 2 (one for external and one for timer) 1 level CR oscillation circuit (a capacitor and a resistor connected externally) Frequency error: 17 % (VDD = 5 V 10 %, VDD = 3 V 10 %, the error of the external capacitor and resistor excluded) Subroutine nesting Device structure Package Operating temperature range Supply voltage Power 4 levels CMOS silicon gate 20-pin plastic molded SOP (20P2N-A) -20 C to 85 C 2.2 V to 5.5 V (Refer to the electrical characteristics because the supply voltage depends on the system clock frequency.) 1.5 mA
Active mode (at 4.0 MHz system clock frequency, VDD = 5 V, output transistors in the cut-off state) dissipation (typical value) RAM back-up mode 0.1 A (at room temperature, VDD = 5 V, output transistors in the cut-off state)
MITSUBISHI ELECTRIC
3
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION
Pin VDD VSS CNVSS
RESET
Name Power supply Ground CNVSS Reset input System clock input System clock output I/O port F I/O port G
Input/Output -- -- -- Input Input Output I/O I/O Connected to a plus power supply. Connected to a 0 V power supply.
Function
Connect CNVSS to VSS and apply "L" (0V) to CNVSS certainly. Reset pulse input pin I/O pins of the system clock generating circuit. Connect pins XIN and XOUT directly. Then, pull up XIN pin through a resistor and pull down XOUT pin through a capacitor. 2-bit I/O port; for input use, set the latch of the specified bit to "1." The output structure is N-channel open-drain. 4-bit I/O port. For input use, set the latch of the specified bit to "1." The output structure is N-channel open-drain. Every pin of the ports has a key-on wakeup function and a pull-up function. Both functions can be switched by software. Ports G0 and G1 are also used as pins INT and TOUT, respectively.
XIN XOUT F0, F1 G0-G3
S0-S3
I/O port S
I/O
4-bit I/O port. For input use, set the latch of the specified bit to "1." The output structure is N-channel open-drain. Every pin of the ports has a key-on wakeup function which can be switched by software. Also, it is used to perform the logic operation using register A. Each pin of port D has an independent 1-bit wide I/O function. For input use, set the latch of the specified bit to "1." The output structure is N-channel open-drain. Ports D2 and D3 are also used as ports C and K, respectively. 1-bit I/O port. For input use, set the latch of the specified bit to "1." The output structure is N-channel open-drain. Port C has a pull-up function which can be switched by software. It is also used as port D2. 1-bit I/O port. For input use, set the latch of the specified bit to "1." The output structure is N-channel open-drain. Port K has a pull-up function which can be switched by software. It is also used as port D3. TOUT pin has the function to output the timer 1 underflow signal divided by 2. It is also used as port G1. INT pin accepts an external interrupt. It also accepts the input signal to return the system from the RAM back-up state. It is also used as port G0.
D0-D3
I/O port D
I/O
C
I/O port C
I/O
K
I/O port K
I/O
TOUT INT
Timer output Interrupt input
Output Input
4
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MULTIFUNCTION
Pin G0 G1 D2 INT TOUT C Multifunction Pin INT (Note 2) TOUT (Note 2) C (Note 2) G0 G1 Multifunction
D2 D3 K K (Note 2) D3 Notes 1: Pins except above have just single function. 2: The I/O of ports D2, D3 and G0, and the input of port G1 can be used even when ports C and K and pins INT and TOUT are selected.
CONNECTIONS OF UNUSED PINS
Pin F0, F1 G0/INT, G1/TOUT G2, G3 S0-S3 Connection Connect to VSS pin. Open or connect to VSS pin. (Note 1) Connect to VSS pin. (Note 2) D0, D1 D2/C, D3/K Pin Connection Connect to VSS pin. Open or connect to VSS pin. (Note 3)
Notes 1: When pins G0/INT, G1/TOUT, G2 and G3 are connected to VSS pin, turn off their pull-up transistors (Pull-up control register PU0="!02") and also invalidate the key-on wakeup functions of pins G1/TOUT, G2 and G3 (Key-on wakeup contorl register K0="!!0!2") by software. When the POF instruction is executed while these pins are connected to VSS and the key-on wakeup functions are left valid, the system returns from RAM back-up state by recognizing the return condition immediately after going into the RAM back-up state. When these pins are open, turn on their pull-up transistors (Pull-up control register PU0="!12") by software. 2: When ports S0-S3 are connected to VSS pin, invalidate the key-on wakeup functions (Key-on wakeup contorl register K0="!!!02") by software. When the POF instruction is executed while these pins are connected to VSS and the key-on wakeup functions are left valid, the system returns from RAM back-up state by recognizing the return condition immediately after going into the RAM back-up state. 3: When ports D2/C and D3/K are connected to VSS pin, turn off their pull-up transistors (register PU0="0!2") by software. When these pins are open, turn on their pull-up transistors (register PU0="1!2") by software. (Note when connecting to VSS and VDD) * Connect the unused pins to VSS or VDD at the shortest distance and use the thick wire against noise.
MITSUBISHI ELECTRIC
5
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
PORT FUNCTION
Port Port D D0, D1 D2/C D3/K Pin Input/ Output I/O (4) Output structure N-channel open-drain Control bits 1 Control instructions SD RD SZD CLD SCP RCP SNZCP OKA Port S S0-S3 I/O (4) N-channel open-drain 4 IAK OSA IAS LGOP Port G G0/INT I/O (4) N-channel open-drain 4 OGA IAG PU0, K0 K0 LO Logic operation function (programmable) Key-on wakeup functions (programmable) Pull-up functions Key-on wakeup functions (only pull-up function is G1/TOUT G2, G3 Port F F0, F1 I/O (2) N-channel open-drain 2 OFA IAF PU0, K0 V1 PU0, K0 programmable) Pull-up functions (programmable) Key-on wakeup functions (programmable) Control registers PU0 Remark
Pull-up function (programmable)
DEFINITION OF CLOCK AND CYCLE
* System clock This is the source clock input to the XIN pin. Connect pins XIN and XOUT directly. Then, pull up XIN pin through a resistor and pull down XOUT pin through a capacitor. * Instruction clock The instruction clock is a signal derived by dividing the system clock by 4, and is the basic clock for controlling this product. * Machine cycle One machine cycle is the time required to execute the minimum instruction (one-cycle instruction). The machine cycle is equivalent to the instruction clock cycle.
6
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
I/O PORT
(1) Port D (D0-D3) Each pin of port D has an independent 1-bit wide I/O function. Each pin has an output latch. For input/output of ports D0-D3, select one of port D with the register Y of data pointer first. For input use, set the latch of the specified bit to "1." All port D output latches can be set to "1" with the CLD instruction. The output structure is the N-channel open-drain. Ports D2 and D3 are also used as ports C and K, respectively. Accordingly, when port D2/C is used as port D2, set the port C output latch to "1." When port D3/K is used as port D3, set the port K output latch to "1." (2) Port C 1-bit I/O port. Port C output latch can be set to "1" with the SCP instruction. Port C output latch can be cleared to "0" with the RCP instruction. Port C input level can be examined by executing the skip (SNZCP) instruction. For input use, set the latch of the specified bit to "1." The output structure is the N-channel open-drain. The pull-up transistor of port C is turned on when the bit 1 of register PU0 is set to "1" by software. Port C is also used as port D2. Accordingly, when port D2/C is used as port C, set the port D2 output latch to "1." Pull-up control register Pull-up control register PU0 PU01 PU00 Ports C and K pull-up transistor control bit Ports G0-G3 0 1 0 1
(3) Port K 1-bit I/O port. For input use, set the latch of the specified bit to "1." The output structure is the N-channel open-drain. The pull-up transistor of port K is turned on when the bit 1 of register PU0 is set to "1" by software. Port K is also used as port D3. Accordingly, when port D3/K is used as port K, set the port D3 output latch to "1." (4) Port G (G0-G3) 4-bit I/O port. For input use, set the latch of the specified bit to "1." The output structure is the N-channel open-drain. The pull-up transistor of port G is turned on when the bit 0 of register PU0 is set to "1" by software. Ports G0 and G1 are also used as INT pin and TOUT pin, respectively.
at reset : 002
at RAM back-up : state retained
W
Pull-up transistor OFF Pull-up transistor ON Pull-up transistor OFF Pull-up transistor ON
pull-up transistor control bit Note: "W" represents write enabled.
MITSUBISHI ELECTRIC
7
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(5) Port F (F0, F1) 2-bit I/O port. For input use, set the latch of the specified bit to "1." The output structure is the N-channel open-drain. (6) Port S (S0-S3) 4-bit I/O port. Port S has the logic operation (LGOP) function. For input (logic operation included) use, set the latch of the specified bit to "1." The output structure is the N-channel open-drain. When performing the logic operation, select the logic operation function with the logic operation selection register LO. Set the contents of register LO through register A with the TLOA instruction. When the LGOP instruction is executed, the logic operation selected with the register LO is performed between the contents of register A and the contents of port S, and its result is stored in register A. Logic operation selection register Logic operation selection register LO LO1 Logic operation function selection bits LO0 Note: "W" represents write enabled. at reset : 002 LO1 LO0 0 XOR operation 0 1 OR operation 0 1 1 0 AND operation 1 Not available at RAM back-up : 002 Functions W
8
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
PORT BLOCK DIAGRAMS
Skip decision (SZD instruction) Register Y Decoder CLD instruction SD instruction RD instruction S RQ
(Note 1)
D0, D1
IAF instruction Register A Aj Pull-up transistor
(Note 3)
F0, F1 DQ OFA instruction T
(Note 1)
Register Y
Decoder CLD instruction
PU01 Skip decision (SNZCP instruction) Skip decision (SZD instruction)
(Note 1)
SD instruction RD instruction SCP instruction RCP instruction
S RQ S RQ
D2/C
Key-on wakeup input
K00
LO Register LGOP instruction
Logic operator
(Note 2)
Ai
IAS instruction Pull-up transistor Register A Ai PU01 IAK instruction Register A S RQ A0 OKA instruction D TQ
Notes 1: (Note 1) (Note 2)
S0-S3 DQ OSA instruction T
(Note 1)
Register Y
Decoder CLD instruction
SD instruction RD instruction
Skip decision (SZD instruction)
D3/K
This symbol represents a parasitic diode. Applied potential to ports D0, D1, F0, F1, S0-S3 must be 7V or less. Applied potential to ports D2, D3 must be VDD or less. 2: i represents 0, 1, 2 or 3. 3: j represents 0 or 1.
MITSUBISHI ELECTRIC
9
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
PORT BLOCK DIAGRAMS (CONTINUED)
Pull-up transistor
Rising
K02 0 External interrupt Key-on wakeup input EXF0
One-sided edge detection circuit
(Note 1) 1
Falling
PU00
IAG instruction G0/INT
Register A
A0 OGA instruction
DQ T
Pull-up transistor K01 Key-on wakeup input IAG instruction Register A Timer 1 underflow signal output A1 OGA instruction DQ T
1/2
1 0 (Note 1)
PU00
G1/TOUT
V13
Pull-up transistor K01 Key-on wakeup input IAG instruction Register A G2, G3
(Note 1)
PU00
(Note 2) Ak
DQ T
OGA instruction
Notes 1:
This symbol represents a parasitic diode. Applied potential to ports G0-G3 must be VDD or less. 2: k represents 2 or 3.
10
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
FUNCTION BLOCK OPERATIONS CPU
(CY)
(1) Arithmetic logic unit (ALU) The arithmetic logic unit ALU performs 4-bit arithmetic such as 4-bit data addition, comparison, and bit manipulation. (2) Register A and carry flag Register A is a 4-bit register used for arithmetic, transfer, exchange, and I/O operation. Carry flag CY is a 1-bit flag that is set to "1" when there is a carry with the AMC instruction (Figure 1). It is unchanged with both A n instruction and AM instruction. The value of A0 is stored in carry flag CY with the RAR instruction (Figure 2). Carry flag CY can be set to "1" with the SC instruction and cleared to "0" with the RC instruction. (3) Registers B and E Register B is a 4-bit register used for temporary storage of 4bit data, and for 8-bit data transfer together with register A. Register E is an 8-bit register. It can be used for 8-bit data transfer with register B used as the high-order 4 bits and register A as the low-order 4 bits (Figure 3). (4) Register D Register D is a 3-bit register. It is used to store a 7-bit ROM address together with register A and is used as a pointer within the specified page when the TABP p, BLA p, or BMLA p instruction is executed (Figure 4).

(M(DP)) Addition (A)
Fig. 1 AMC instruction execution example
ALU
SC instruction
RC instruction
CY
A3 A2 A1 A0 RAR instruction
A0
CY A3 A2 A1
Fig. 2 RAR instruction execution example
Register B
TAB instruction
Register A
B3 B2 B1 B0
A3 A2 A1 A0
TEAB instruction Register E E7 E6 E5 E4 E3 E2 E1 E0 TABE instruction B3 B2 B1 B0 Register B A3 A2 A1 A0 TBA instruction Register A
Fig. 3 Registers A, B and register E
ROM TABP p instruction Specifying address 8 4 0
PCH p3 p2 p1 p0
PCL DR2 DR1 DR0 A3 A2 A1 A0
Low-order 4 bits Register A (4) Middle-order 4 bits Register B (4)
Immediate field The contents of The contents of value p register D register A
Fig. 4 TABP p instruction execution example
MITSUBISHI ELECTRIC
11
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(5) Stack registers (SKs) and stack pointer (SP) Stack registers (SKs) are used to temporarily store the contents of program counter (PC) just before branching until returning to the original routine when; * branching to an interrupt service routine (referred to as an interrupt service routine), * performing a subroutine call, or * executing the table reference instruction (TABP p). Stack registers (SKs) are four identical registers, so that subroutines can be nested up to 4 levels. However, one of stack registers is used respectively when using an interrupt service routine and when executing a table reference instruction. Accordingly, be careful not to over the stack when performing these operations together. The contents of registers SKs are destroyed when 4 levels are exceeded. The register SK nesting level is pointed automatically by 2-bit stack pointer (SP). Figure 5 shows the stack registers (SKs) structure. Figure 6 shows the example of operation at subroutine call. (6) Interrupt stack register (SDP) Interrupt stack register (SDP) is a 1-stage register. When an interrupt occurs, this register (SDP) is used to temporarily store the contents of data pointer, carry flag and skip flag just before an interrupt until returning to the original routine. Unlike the stack registers (SKs), this register (SDP) is not used when executing the subroutine call instruction and the table reference instruction. (7) Skip flag Skip flag controls skip decision for the conditional skip instructions and continuous described skip instructions. When an interrupt occurs, the contents of skip flag is stored automatically in the interrupt stack register (SDP) and the skip condition is retained.
Program counter (PC) Executing BM instruction SK0 SK1 SK2 SK3 Executing RT instruction (SP) = 0 (SP) = 1 (SP) = 2 (SP) = 3
Stack pointer (SP) points "3" at reset or returning from RAM back-up mode. It points "0" by executing the first BM instruction, and the contents of program counter is stored in SK0. When the BM instruction is executed after four stack registers are used ((SP) = 3), (SP) = 0 and the contents of SK0 is destroyed.
Fig. 5 Stack registers (SKs) structure
(SP) (SK0) (PC)
0 000116 SUB1
Main program Address 000016 NOP 000116 BM SUB1 000216 NOP
Subroutine
SUB1 : NOP * * * RT
(PC) (SP)
(SK0) 3
Note: Returning to the BM instruction execution address with the RT instruction, and the BM instruction is equivalent to the NOP instruction.
Fig. 6 Example of operation at subroutine call
12
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(8) Program counter (PC) Program counter (PC) is used to specify a ROM address (page and address). It determines a sequence in which instructions stored in ROM are read. It is a binary counter that increments the number of instruction bytes each time an instruction is executed. However, the value changes to a specified address when branch instructions, subroutine call instructions, return instructions, or the table reference instruction (TABP p) is executed. Program counter consists of PCH (most significant bit to bit 7) which specifies to a ROM page and PCL (bits 6 to 0) which specifies an address within a page. After it reaches the last address (address 127) of a page, it specifies address 0 of the next page (Figure 7). Make sure that the PCH does not exceed after the last page of the built-in ROM. (9) Data pointer (DP) Data pointer (DP) is used to specify a RAM address and consists of registers X and Y. Register X specifies a file and register Y specifies a RAM digit (Figure 8). Register Y is also used to specify the port D bit position. When using port D, set the port D bit position to register Y certainly and execute the SD, RD, or SZD instruction (Figure 9).
Program counter (PC) p3 p2 p1 p0 a6 a5 a4 a3 a2 a1 a0
PCH Specifying page
PCL Specifying address
Fig. 7 Program counter (PC) structure
Data pointer (DP) X1 X0 Y3 Y2 Y1 Y0
Register Y (4) Register X (2)
Specifying RAM digit
Specifying RAM file
Fig. 8 Data pointer (DP) structure
Specifying bit position Set
D3 D2 D1 D0
0
0
1
0
1 Port D output latch
Register Y (4)
Fig. 9 SD instruction execution example
MITSUBISHI ELECTRIC
13
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
PROGRAM MEMORY (ROM)
The program memory is a mask ROM. 1 word of ROM is composed of 9 bits. ROM is separated every 128 words by the unit of page (addresses 0 to 127). Table 1 shows the ROM size and pages. Figure 10 shows the ROM map of M34250M2. Table 1 ROM size and pages Product M34250M2 M34250E2 ROM size (! 9 bits) 2048 words Pages 16 (0 to 15)
8 000016 007F16 008016 00FF16 010016 017F16 018016
7
6
5
4
3
2
10 Page 0
Interrupt address page Subroutine special page
Page 1 Page 2 Page 3
A part of page 1 (addresses 008016 to 00FF16) is reserved for interrupt addresses (Figure 11). When an interrupt occurs, the address (interrupt address) corresponding to each interrupt is set in the program counter, and the instruction at the interrupt address is executed. When using an interrupt service routine, write the instruction generating the branch to that routine at an interrupt address. Page 2 (addresses 010016 to 017F16) is the special page for subroutine calls. Subroutines written in this page can be called from any page with the 1-word instruction (BM). Subroutines extending from page 2 to another page can also be called with the BM instruction when it starts on page 2. ROM pattern (bits 7 to 0) of all addresses can be used as data areas with the TABP p instruction.
07FF16
Fig. 10 ROM map of M34250M2
Page 15
008016 008216 00FF16
8765 43210 External interrupt address Timer 1 interrupt address
DATA MEMORY (RAM)
1 word of RAM is composed of 4 bits, but 1-bit manipulation (with the SB j, RB j, and SZB j instructions) is enabled for the entire memory area. A RAM address is specified by a data pointer. The data pointer consists of registers X and Y. Set a value to the data pointer certainly when executing an instruction to access RAM. Table 2 shows the RAM size. Figure 12 shows the RAM map. Table 2 RAM size Product M34250M2 M34250E2
Fig. 11 Page 1 (addresses 008016 to 00FF16) structure
RAM 64 words ! 4 bits (256 bits)
Register X 0 1 2 3
RAM size 64 words ! 4 bits (256 bits)
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 64 words
Fig. 12 RAM map
14
MITSUBISHI ELECTRIC
Register Y
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
INTERRUPT FUNCTION
The interrupt type is a vectored interrupt branching to an individual address (interrupt address) according to each interrupt source. An interrupt occurs when the following 3 conditions are satisfied. * An interrupt activated condition is satisfied (request flag = "1") * Interrupt enable bit = "1" (interrupt request occurrence enabled) * Interrupt enable flag (INTE) = "1" (interrupt enabled) Table 3 shows interrupt sources. (Refer to each interrupt request flag for details of activated conditions.) (1) Interrupt enable flag (INTE) The interrupt enable flag (INTE) controls whether the every interrupt enable/disable. Interrupts are enabled when INTE flag is set to "1" with the EI instruction and disabled when INTE flag is cleared to "0" with the DI instruction. When any interrupt occurs, the INTE flag is automatically cleared to "0," so that other interrupts are disabled until the EI instruction is executed. (2) Interrupt enable bit (V10, V11) Use an interrupt enable bit of interrupt control register V1 to select the corresponding interrupt or skip instruction. Table 4 shows the interrupt request flag, interrupt enable bit and skip instruction. Table 5 shows the interrupt enable bit function. (3) Interrupt request flag When the activated condition for each interrupt is satisfied, the corresponding interrupt request flag is set to "1." Each interrupt request flag is cleared to "0" when either; * an interrupt occurs, or * the next instruction is skipped with a skip instruction. Each interrupt request flag is set when the activated condition is satisfied even if the interrupt is disabled by the INTE flag or its interrupt enable bit. Once set, the interrupt request flag retains set until a clear condition is satisfied. Accordingly, an interrupt occurs when the interrupt disable state is released while the interrupt request flag is set. If more than one interrupt request flag is set when the interrupt disable state is released, the interrupt priority level is as follows shown in Table 3.
Table 3 Interrupt sources Priority Activated condition Interrupt name level 1 2
Interrupt address
External interrupt Level change of INT Address 0 in page 1 pin Address 2 Timer 1 interrupt Timer 1 underflow in page 1
Table 4 Interrupt request flag, interrupt enable bit and skip instruction Interrupt name Request flag Enable bit Skip instruction EXF0 V10 SNZ0 External interrupt Timer 1 interrupt T1F V11 SNZ1
Table 5 Interrupt enable bit function Occurrence of Interrupt enable bit interrupt request Enabled 1 0 Disabled
Skip instruction Invalid Valid
MITSUBISHI ELECTRIC
15
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(4) Internal state during an interrupt The internal state of the microcomputer during an interrupt is as follows (Figure 14). * Program counter (PC) An interrupt address is set in program counter. The address to be executed when returning to the main routine is automatically stored in the stack register (SK). * Interrupt enable flag (INTE) INTE flag is cleared to "0" so that interrupts are disabled. * Interrupt request flag Only the request flag for the current interrupt source is cleared to "0." * Data pointer, carry flag and skip flag The contents of these pointer and flags are stored automatically in the interrupt stack register (SDP). (5) Interrupt processing When an interrupt occurs, a program at an interrupt address is executed after branching a data store sequence to stack register. Write the branch instruction to an interrupt service routine at an interrupt address. Use the RTI instruction to return to main routine. Interrupt enabled by executing the EI instruction is performed after executing 1 instruction (just after the next instruction is executed). Accordingly, when the EI instruction is executed just before the RTI instruction, interrupts are enabled after returning the main routine. (Refer to Figure 13)
* Program counter (PC) ........... Each interrupt address * Stack register (SK) The address of main routine to be executed when returning
* Interrupt enable flag (INTE) ...... 0 (Interrupt disabled) * Interrupt request flag (only the flag for the current interrupt source) ...................................................................... 0 * Data pointer, carry flag, skip flag ......... Stored in the interrupt stack register (SDP) automatically Fig. 14 Internal state when interrupt occurs
INT pin (LH or HL input) Timer 1 underflow
EXF0
V10
Address 0 in page 1 Address 2 in page 1 Enable flag
T1F Request flag (state retained)
V11 Enable bit
Activated condition
Fig. 15 Interrupt system diagram
Main routine
Interrupt service routine Interrupt occurs
Interrupt is enabled
EI RTI
: Interrupt enabled state : Interrupt disabled state
Fig. 13 Program example of interrupt processing
16
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(6) Control register related to interrupt * Timer control register V1 Interrupt enable bits of external and timer 1 are assigned to register V1. Set the contents of this register through register A with the TV1A instruction. The TAV1 instruction can be used to transfer the contents of register V1 to register A. Table 6 Control register related to interrupt Timer control register V1 V13 V12 V11 V10 G1/TOUT pin function selection bit Prescaler/timer 1 operation start bit Timer 1 interrupt enable bit External interrupt enable bit 0 1 0 1 0 1 0 1 at reset : 00002 Port G1 (I/O) TOUT pin (output)/port G1(input) Prescaler stop (initial state) / timer 1 stop (state retained) Prescaler / timer 1 operation Interrupt disabled (SNZ1 instruction is valid) Interrupt enabled (SNZ1 instruction is invalid) Interrupt disabled (SNZ0 instruction is valid) Interrupt enabled (SNZ0 instruction is invalid) at RAM back-up : 00002 R/W
Note: "R" represents read enabled, and "W" represents write enabled. (7) Interrupt sequence Interrupts occur only when the respective INTE flag, interrupt enable bits (V10, V11), and interrupt request flags (EXF0, T1F) are "1." The interrupt actually occurs 2 to 3 machine cycles after the cycle in which all three conditions are satisfied. The interrupt occurs after 3 machine cycles only when the three interrupt conditions are satisfied on execution of other than one-cycle instructions (Refer to Figure 16).
q When an interrupt request flag is set after its interrupt is enabled
1 machine cycle
T1 T2 T3 T4 T1 T2 T3 T4 T1 T2 T3 T4 T1 T2 T3 T4 f (XIN) EI instruction execution cycle Interrupt enabled state.
T1 T2 T3 T4
Interrupt enable flag (INTE)
Interrupt disabled state.
G0/INT pin External interrupt EXF0 flag Interrupt activated condition is satisfied. Timer 1 interrupt
Retaining level for 5 cycles or more of f(XIN) is necessary.
T1F flag Flag cleared 2 to 3 machine cycles (Notes 1, 2) Software starts from the interrupt address.
Notes 1: The address is stacked to the last cycle. 2: This interval of cycles depends on the executed instruction at the time when each interrupt activated condition is satisfied.
Fig. 16 Interrupt sequence
MITSUBISHI ELECTRIC
17
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
EXTERNAL INTERRUPTS
The 4250 Group has an external interrupt. An external interrupt request occurs when a valid waveform is input to an interrupt input pin (edge detection). The external interrupt can be controlled with the key-on wakeup control register K0. Table 7 External interrupt activated condition Name External interrupt Input pin G0/INT Valid waveform Falling waveform ("H""L") Rising waveform ("L""H") Valid waveform selection bit(K02) 1 0
K02 0 External interrupt Key-on wakeup input EXF0
One-sided edge detection circuit
Pull-up transistor
Rising
(Note) 1
Falling
PU00
IAG instruction Register A G0/INT pin
A0 OGA instruction
DQ T
Note:
This symbol represents a parasitic diode. Applied potential to port G0 must be VDD or less.
Fig. 17 External interrupt circuit structure
18
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(1) External interrupt request flag (EXF0) External interrupt request flag (EXF0) is set to "1" when a valid waveform is input to G0/INT pin. The valid waveforms causing the interrupt must be retained at their level for 5 cycles or more of f(XIN) (Refer to Figure 16). The state of EXF0 flag can be examined with the skip instruction (SNZ0). Use the timer control register V1 to select the interrupt or the skip instruction. The EXF0 flag is cleared to "0" when an interrupt occurs or when the next instruction is skipped with the skip instruction. * External interrupt activated condition External interrupt activated condition is satisfied when a valid waveform is input to G0/INT pin. The valid waveform can be selected from rising waveform or falling waveform. An example of how to use the external interrupt is as follows. Select the valid waveform with the bit 2 of register K0. Clear the EXF0 flag to "0" with the SNZ0 instruction. Set the NOP instruction for the case when a skip is performed with the SNZ0 instruction. Set both the external interrupt enable bit (V10) and the INTE flag to "1." The external interrupt is now enabled. Now when a valid waveform is input to the G0/INT pin, the EXF0 flag is set to "1" and the external interrupt occurs. Table 8 Control register related to external interrupt Key-on wakeup control register K0 K03 Prescaler dividing ratio selection bit Interrupt valid waveform for INT pin/ key-on wakeup valid waveform selection bit (Note 2) K01 K00 Ports G1-G3 key-on wakeup control bit Ports S0-S3 key-on wakeup control bit 0 1 0 1 0 1 0 1
(2) Control register related to external interrupt * Key-on wakeup control register K0 Register K0 controls the valid waveform for the external interrupt and key-on wakeup function. Set the contents of this register through register A with the TK0A instruction. The TAK0 instruction can be used to transfer the contents of register K0 to register A.
at reset : 00002
at RAM back-up : state retained
R/W
Instruction clock divided by 4 Instruction clock divided by 512 Rising waveform ("L" "H") Falling waveform ("H" "L") Key-on wakeup not used Key-on wakeup used ("L" level recognized) Key-on wakeup not used Key-on wakeup used ("L" level recognized)
K02
Notes 1: "R" represents read enabled, and "W" represents write enabled. 2: Set a value to the bit 2 of register K0, and execute the SNZ0 instruction to clear the EXF0 flag to "0" after executing at least one instruction. According to the input state of G0/INT pin, the external interrupt request flag (EXF0) may be set to "1" when the interrupt valid waveform is changed.
MITSUBISHI ELECTRIC
19
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
TIMERS
The 4250 Group has the programmable timer. * Programmable timer The programmable timer has a reload register and enables the frequency dividing ratio to be set. It is decremented from a setting value n. When it underflows (count to n + 1), a timer interrupt request flag is set to "1," new data is loaded from the reload register, and count continues (auto-reload function).
FF16 n : Counter initial value Count starts n Reload Reload
The contents of counter
1st underflow
2nd underflow
0016 Time n+1 count Timer 1 interrupt request flag An interrupt occurs or a skip instruction is executed. n+1 count
Fig. 18 Auto-reload function
20
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
The 4250 Group timer consists of the following circuits. * Prescaler : frequency divider * Timer 1 : 8-bit programmable timer with the interrupt function These timers can be controlled with the timer control register V1 and key-on wakeup control register K0. Each function is described below. Table 9 Function related timers Circuit Prescaler Timer 1 Structure Frequency divider 8-bit programmable binary down counter Count source Instruction clock Prescaler output (ORCLK) Frequency Use of output signal dividing ratio 4, 512 * Timer 1 count source 1 to 256 * TOUT pin * Timer 1 interrupt Control register V1 K0 V1
Prescaler V12
0 1
K03 1/4 1/512
0 1
V12(Note)
0
ORCLK
1
Bit 7
Timer 1 (8)
Timer 1 underflow signal Bit 0 1/2
T1F
Timer 1 interrupt
Timer 1 reload register R 1(8)
T1AB instruction
V13
1
Instruction clock Internal clock generating circuit (divided by 4)
Register B(4)
TAB1 instruction
Register A(4)
TAB1 instruction
G1 output
G1/ TOUT G1 input
0
Note: Count source is stopped by clearing to "0." XIN : Data is automatically set from a reload register when timer 1 underflows (auto-reload function).
Fig. 19 Timers structure
MITSUBISHI ELECTRIC
21
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Table 10 Control registers related to timer Timer control register V1 V13 V12 V11 V10 G1/TOUT pin function selection bit Prescaler/timer 1 operation start bit Timer 1 interrupt enable bit External interrupt enable bit Key-on wakeup control register K0 K03 Prescaler dividing ratio selection bit Interrupt valid waveform for INT pin/ K02 key-on wakeup valid waveform selection bit (Note 2) K01 K00 Ports G1-G3 key-on wakeup control bit Ports S0-S3 key-on wakeup control bit 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 at reset : 00002 Port G1 (I/O) TOUT pin (output)/port G1(input) Prescaler stop (initial state) / timer 1 stop (state retained) Prescaler / timer 1 operation Interrupt disabled (SNZ1 instruction is valid) Interrupt enabled (SNZ1 instruction is invalid) Interrupt disabled (SNZ0 instruction is valid) Interrupt enabled (SNZ0 instruction is invalid) at reset : 00002 at RAM back-up : state retained R/W at RAM back-up : 00002 R/W
Instruction clock divided by 4 Instruction clock divided by 512 Rising waveform ("L" "H") Falling waveform ("H" "L") Key-on wakeup not used Key-on wakeup used ("L" level recognized) Key-on wakeup not used Key-on wakeup used ("L" level recognized)
Notes 1: "R" represents read enabled, and "W" represents write enabled. 2: Set a value to the bit 2 of register K0, and execute the SNZ0 instruction to clear the EXF0 flag to "0" after executing at least one instruction. According to the input state of G0/INT pin, the external interrupt request flag (EXF0) may be set to "1" when the interrupt valid waveform is changed.
22
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(1) Control registers related to timer * Timer control register V1 G1/TOUT pin function selection bit and prescaler/timer 1 operation start bit are assigned to register V1. Set the contents of this register through register A with the TV1A instruction. The TAV1 instruction can be used to transfer the contents of register V1 to register A. * Key-on wakeup control register K0 Prescaler dividing ratio selection bit is assigned to register K0. Set the contents of this register through register A with the TK0A instruction. The TAK0 instruction can be used to transfer the contents of register K0 to register A. (2) Precautions Note the following for the use of timers. * Prescaler Stop the prescaler operation to change its frequency dividing ratio. * Reading the count value Stop timer 1 counting and then execute the TAB1 instruction to read its data. (3) Prescaler Prescaler is a frequency divider. Its frequency dividing ratio can be selected. The count source of prescaler is the instruction clock. Use the bit 3 of register K0 to select the prescaler dividing ratio and the bit 2 of register V1 to start and stop its operation. Prescaler is initialized, and the output signal (ORCLK) stops when the bit 2 of register V1 is cleared to "0." (4) Timer 1 (interrupt function) Timer 1 is an 8-bit binary down counter with the timer 1 reload register (R1). Data can be set simultaneously in timer 1 and the reload register (R1) with the T1AB instruction. Timer 1 starts counting after the following process; set data in timer 1, and set the bit 2 of register V1 to "1." Once count is started, when timer 1 underflows (the next count pulse is input after the contents of timer 1 becomes "0"), the timer 1 interrupt request flag (T1F) is set to "1," new data is loaded from reload register R1, and count continues (autoreload function). When a value set in reload register R1 is n, timer 1 divides the count source signal by n + 1 (n = 0 to 255). Data can be read from timer 1 to registers A and B with the TAB1 instruction. When reading the data, stop the counter and then execute the TAB1 instruction. Timer 1 underflow signal divided by 2 can be output from G1/TOUT pin.
(5) Timer output pin (G1/TOUT) Timer output pin (G1/TOUT) has the function to output the timer 1 underflow signal divided by 2. The selection of G1/TOUT pin function can be controlled with the bit 3 of register V1. (6) Timer interrupt request flag (T1F) Timer interrupt request flag is set to "1" when the timer underflows. The state of this flag can be examined with the skip instruction (SNZ1). Use the register V1 to select an interrupt or a skip instruction. T1F flag is cleared to "0" when an interrupt occurs or when the next instruction is skipped with a skip instruction.
MITSUBISHI ELECTRIC
23
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
RESET FUNCTION
System reset is performed by applying "L" level to RESET pin for 1 machine cycle or more when the following condition is satisfied; * the value of supply voltage is the minimum value or more of the recommended operating conditions.
Then when "H" level is applied to RESET pin, software starts from address 0 in page 0.
f(XIN)
RESET Software starts (address 0 in page 0) 3584 to 3585 machine cycles The number of clock cycles depends on the internal state of the microcomputer when reset is performed.
Fig. 20 Reset release timing
Reset input 1 machine cycle or more
=
3584 to 3585 machine cycles
0.85VDD RESET 0.1VDD
Software starts (address 0 in page 0)
(Note)
Note : Keep the value of supply voltage the minimum value or more of the recommended operating conditions.
Fig. 21 RESET pin input waveform and reset operation
24
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(1) Power-on reset Reset can be automatically performed at power on (power-on reset) by connecting a resistor, a diode, and a capacitor to RESET pin. Connect RESET pin and the external circuit at the shortest distance.
VDD
VDD RESET pin voltage Internal reset signal RESET pin Reset state
Internal reset signal
This symbol represents a parasitic diode. Note: Applied potential to RESET pin must be 7 V or less.
Fig. 22 Power-on reset circuit example (2) Internal state at reset Table 11 shows port state at reset, and Figure 23 shows internal state at reset (they are retained after system is released from reset). Table 11 Port state at reset Function Name D0, D1, D2/C, D3/K S0-S3 G0/INT, G1/TOUT G2, G3 F0, F1 D0, D1, D2/C, D3/K S0-S3 G0/INT, G1 G2, G3 F0, F1 High impedance (Note)
Reset released Power-on
The contents of timers, registers, flags and RAM except shown in Figure 23 are undefined, so set the initial value to them.
State
Note: Output latch is set to "1."
MITSUBISHI ELECTRIC
25
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
* Program counter (PC) .............................................................. 0 Address 0 in page 0 is set to program counter. * Interrupt enable flag (INTE) ..................................................... 0 * Power down flag (P) ................................................................. 0 * External interrupt request flag (EXF0) ..................................... 0 * Timer 1 interrupt request flag (T1F) ........................................ 0 * Timer control register V1 ......................................................... 0
0
0
0
0
0
0
0
0
0
0
(Interrupt disabled)
0
0
0
(Interrupt disabled, prescaler/timer 1 stopped) * Key-on wakeup control register K0 ......................................... 0 0 0 0 * Pull-up control register PU0 ..................................................... 0 * Logic operation selection register LO ...................................... 0 * Carry flag (CY) ......................................................................... 0 * Register A ................................................................................. 1 * Register B ................................................................................. 1 * Stack pointer (SP) .................................................................... 1
Fig. 23 Internal state at reset
0 0 1 1 1 1 1 1 1
26
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
RAM BACK-UP MODE
The 4250 Group has the RAM back-up mode. When the POF instruction is executed continuously, system enters the RAM back-up state. As oscillation stops retaining RAM, the function of reset circuit and states at RAM back-up mode, current dissipation can be reduced without losing the contents of RAM. Table 12 shows the function and states retained at RAM back-up. Figure 24 shows the state transition. (1) Identification of the start condition Warm start (return from the RAM back-up state) or cold start (return from the normal reset state) can be identified by examining the state of the power down flag (P) with the SNZP instruction. (2) Warm start condition When the external wakeup signal is input after the system enters the RAM back-up state by executing the POF instruction continuously, the CPU starts executing the software from address 0 in page 0. In this case, the P flag is "1." (3) Cold start condition The CPU starts executing the software from address 0 in page 0 when reset pulse is input to RESET pin. In this case, the P flag is "0." (4) Return signal An external wakeup signal is used to return from the RAM back-up mode. Table 13 shows the return condition for each return source. Table 13 Return source and return condition Return source G0/INT pin
Table 12 Functions and states retained at RAM back-up RAM back-up Function Program counter (PC), registers A, B, carry flag (CY), stack pointer (SP) (Note 2) Contents of RAM Port Timer control register V1 Timer 1 function Pull-up control register PU0 Key-on wakeup control register K0 Logic operation selection register LO External interrupt request flag (EXF0) Timer 1 interrupt request flag (T1F) Interrupt enable flag (INTE) ! O ! ! ! O O ! ! ! !
Notes 1: "O" represents that the function can be retained, and "!" represents that the function is initialized. Registers and flags other than the above are undefined at RAM back-up, and set an initial value after returning. 2:The stack pointer (SP) points the level of the stack register and is initialized to "3" at RAM back-up.
Return condition Remarks Return by an external rising edge Select the return edge (rising edge or falling edge) with the bit 2 of register input ("L""H") or falling edge K0 according to the external state before going into the RAM back-up input ("H""L"). The EXF0 flag is not set. state.
Ports G1-G3 S0-S3
Return by an external "L" level Set the port using the key-on wakeup function selected with register K0 input. to "H" level before going into the RAM back-up state.
Note: G0/INT pin and ports G1-G3, S0-S3 share the circuit which is used to detect the edge and to recognize "L" level. The G0/INT pin cannot be set to "no key-on wakeup."
MITSUBISHI ELECTRIC
27
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(5) Key-on wakeup control register K0 * Key-on wakeup control register K0 The interrupt valid waveform for INT pin/key-on wakeup valid waveform selection bit, the ports G1-G3 key-on wakeup control bit and the ports S0-S3 key-on wakeup control bit are assigned to the register K0. Set the contents Table 14 Key-on wakeup control register Key-on wakeup control register K0 K03 Prescaler dividing ratio selection bit Interrupt valid waveform for INT pin/ K02 key-on wakeup valid waveform selection bit (Note 2) K01 K00 Ports G1-G3 key-on wakeup control bit Ports S0-S3 key-on wakeup control bit 0 1 0 1 0 1 0
of this register through register A with the TK0A instruction. The TAK0 instruction can be used to transfer the contents of register K0 to register A.
at reset : 00002
at RAM back-up : state retained
R/W
Instruction clock divided by 4 Instruction clock divided by 512 Rising waveform ("L" "H") Falling waveform ("H" "L") Key-on wakeup not used Key-on wakeup used ("L" level recognized) Key-on wakeup not used
Key-on wakeup used ("L" level recognized) 1 Notes 1: "R" represents read enabled, and "W" represents write enabled. 2: Set a value to the bit 2 of register K0, and execute the SNZ0 instruction to clear the EXF0 flag after executing at least one instruction. According to the input state of G0/INT pin, the external interrupt request flag (EXF0) may be set when the interrupt valid waveform is changed.
A (Stabilizing time a ) Reset f(XIN) oscillation
POF instruction is executed
B f(XIN) stop
Return input (Stabilizing time a )
(RAM back-up mode)
Stabilizing time a : Microcomputer starts its operation after 3584 to 3585 machine cycles for the time required to stabilize the f(XIN) oscillation.
Fig. 24 State transition
Power down flag P POF instruction Reset input S Q
Software start P = "1" ? No Cold start Yes
R
q Set source q Clear source
POF instruction is executed Reset input
Warm start
Fig. 25 Set source and clear source of the P flag
Fig. 26 Start condition identified example using the SNZP instruction
28
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
CLOCK CONTROL
The clock control circuit consists of the following circuits. * System clock generating circuit * Control circuit to stop the clock oscillation * Control circuit to return from the RAM back-up state
XIN XOUT
Oscillation circuit
Internal clock generating circuit (divided by 4)
Instruction clock Counter
Wait time control circuit (Note) RESET POF instruction R S Q
Software start signal
Key-on wakeup control register K00, K01 Multiplexer Ports G1-G3 Ports S0-S3
K02 Rising
0
G0/INT pin
Rising detected
1 Falling
Note: The wait time control circuit is used to start the microcomputer operation after 3584 to 3585 machine cycles for the time required to stabilize the f(XIN) oscillation.
Fig. 27 Clock control circuit structure Clock signal f(XIN) is obtained by connecting XIN pin and XOUT pin directly, and externally connecting a resistor to XIN and a capacitor to XOUT. Connect this external circuit to pins XIN and XOUT at the shortest distance. When an external clock signal is input, note the input waveform (refer to the list of precaution).
XIN XOUT
ROM ORDERING METHOD
Please submit the information described below when ordering Mask ROM. (1) M34250M2-XXXFP Mask ROM Order Confirmation Form ..............................................................................................1 (2) Data to be written into mask ROM ......................... EPROM (three sets containing the identical data) (3) Mark Specification Form ..................................................... 1
The system clock frequency is affected by a capacitor, a resistor and an LSI, So, set the constants within the range of the frequency limits.
Fig. 28 Resistor and capacitor external circuit
M34250M2-XXXFP
MITSUBISHI ELECTRIC
29
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
LIST OF PRECAUTIONS
Noise and latch-up prevention Connect a capacitor on the following condition to prevent noise and latch-up; * connect a bypass capacitor (approx. 0.01 F) between pins VDD and VSS at the shortest distance, * equalize its wiring in width and length, and * use the thickest wire. In the One Time PROM version, CNVSS pin is also used as VPP pin. Connect this pin to VSS through the resistor about 5 k which is assigned to CNVSS/VPP pin as close as possible at the shortest distance. Prescaler Stop the prescaler operation to change its frequency dividing ratio. Timer count source Stop timer 1 counting to change its count source. Program counter Make sure that the PCH does not specify after the last page of the built-in ROM. G0/INT pin When the interrupt valid waveform of the G0/INT pin is changed with the bit 2 of register K0 in software, be careful about the following notes. * After clear the bit 0 of register V1 to "0" (Figure 29), change the interrupt valid waveform of G0/INT pin with the bit 2 of register K0 . * Set a value to bit 2 of register K0 and execute the SNZ0 instruction to clear the external interrupt request flag (EXF0) after executing at least one instruction (refer to Figure 29). Depending on the input state of the G0/INT pin, the EXF0 flag may be set when the interrupt valid waveform is changed.
Notes on unused pins * When pins G0/INT, G1/TOUT, G2 and G3 are connected to VSS pin, turn off their pull-up transistors (register PU0="!02") and also invalidate the key-on wakeup functions of pins G1/TOUT, G2 and G3 (register K0="!!0!2") by software. When the POF instruction is executed while these pins are connected to VSS and the key-on wakeup functions are left valid, the system returns from RAM back-up state by recognizing the return condition immediately after going into the RAM back-up state. When these pins are open, turn on their pull-up transistors (register PU0="!12") by software. * When ports S0-S3 are connected to VSS pin, invalidate the key-on wakeup functions (register K0="!!!02") by software. When the POF instruction is executed while these pins are connected to VSS and the key-on wakeup functions are left valid, the system returns from RAM back-up state by recognizing the return condition immediately after going into the RAM back-up state. * When ports D2/C and D3/K are connected to VSS pin, turn off their pull-up transistors (register PU0="0!2") by software. When these pins are open, turn on their pull-up transistors (register PU0="1!2") by software. (Note when connecting to VSS and VDD) * Connect the unused pins to VSS or VDD at the shortest distance (within 20 mm) and use the thick wire against noise. Multifunction * G0/INT pin can be also used as an I/O port G0 even when it is used as INT pin. * G1/TOUT pin can be also used as input port G1 even when it is used as TOUT pin. * D2/C pin can be also used as I/O port D2 even when it is used as port C. * D3/K pin can be also used as I/O port D3 even when it is used as port K.
. . . LA 4 TV1A LA 4 TK0A NOP SNZ0 NOP . . .
; (!!!02) ; The SNZ0 instruction is valid ............. ; Change of the interrupt valid waveform .............................................................. ; The SNZ0 instruction is executed
! : this bit is not related to the setting of G0/INT pin.
Fig. 29 External interrupt program example
30
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Key-on wakeup When system returns from RAM back-up state by using the G0/INT pin, select the return edge (rising edge or falling edge) with the bit 2 of register K0 according to the external state before going into the RAM back-up state. When system returns from RAM back-up state by using the ports G1-G3 and S0-S3, set the port using the key-on wakeup function selected with register K0 to "H" level before going into the RAM back-up state. G0/INT pin and ports G1-G3, S0-S3 share the circuit which is used to detect the edge and to recognize "L" level. The G0/INT pin cannot be set to "no key-on wakeup." External clock input waveform When the external clock is used, open XOUT pin, and input the clock waveform into XIN pin shown below. (Refer to Figure 30) *Duty ratio = 50 %. *"H" level input voltage=VDD (V), "L" level input voltage=VSS (V).
VDD(V)
VSS(V) t/2 (S) t/2 (S)
t (S)
Fig. 30 External clock input waveform CR oscillation constant Use the external 30 pF capacitor and enable to change the frequency by the external resistor. Test the system sufficiently because the oscillation constant depends on the ROM type (mask ROM or PROM).
MITSUBISHI ELECTRIC
31
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
SYMBOL
The symbols shown below are used in the following list of instruction function and the machine instructions. Symbol A B DR E V1 K0 PU0 LO X Y DP PC PCH PCL SK SP CY R1 T1 T1F INTE EXF0 P Register A (4 bits) Register B (4 bits) Register D (3 bits) Register E (8 bits) Timer control register V1 (4 bits) Key-on wakeup control register K0 (4 bits) Pull-up control register PU0 (2 bits) Logic operation selection register LO (2 bits) Register X (2 bits) Register Y (4 bits) Data pointer (6 bits) (It consists of registers X and Y) Program counter (11 bits) High-order 4 bits of program counter Low-order 7 bits of program counter Stack register (11 bits ! 4) Stack pointer (2 bits) Carry flag Timer 1 reload register Timer 1 Timer 1 interrupt request flag Interrupt enable flag External interrupt request flag Power down flag ? () -- M(DP) a p, a C + x Note : The 4250 Group just invalidates the next instruction when a skip is performed. The contents of program counter is not increased by 2. Accordingly, the number of cycles does not change even if skip is not performed. However, the cycle count becomes "1" if the TABP p, RT, or RTS instruction is skipped. x y p n j A3A2A1A0 Hexadecimal variable Hexadecimal variable Hexadecimal variable Hexadecimal constant which represents the immediate value Hexadecimal constant which represents the immediate value Binary notation of hexadecimal variable A (same for others) Direction of data movement Data exchange between a register and memory Decision of state shown before "?" Contents of registers and memories Negate, Flag unchanged after executing instruction RAM address pointed by the data pointer Label indicating address a6 a5 a4 a3 a2 a1 a0 Label indicating address a6 a5 a4 a3 a2 a1 a0 in page p3 p2 p1 p0 Hex. C + Hex. number x (also same for others) Contents D F G S K C Symbol Port D (4 bits) Port F (2 bits) Port G (4 bits) Port S (4 bits) Port K (1 bit) Port C (1 bit) Contents
32
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
LIST OF INSTRUCTION FUNCTION
Grouping Mnemonic
Function (A) (B) (B) (A)
Grouping Mnemonic
Function (A) n n = 0 to 15 (SP) (SP) + 1 (SK(SP)) (PC) (PCH) p (PCL) (DR2-DR0, A3-A0) (B) (ROM(PC))7 to 4 (A) (ROM(PC))3 to 0 (PC) (SK(SP)) (SP) (SP) - 1
Grouping Mnemonic
Function (A) = (M(DP)) ? (A) = n ? n = 0 to 15
Comparison
TAB TBA Register to register transfer TAY TYA TEAB
LA n
SEAM operation SEA n
TABP p (A) (Y) (Y) (A) (E7-E4) (B) (E3-E0) (A) TABE (B) (E7-E4) (A) (E3-E0) AM TDA LXY x, y RAM addresses (DR2-DR0) (A2-A0) Arithmetic operation AMC (X) x, x = 0 to 3 (Y) y, y = 0 to 15 INY DEY TAM j (Y) (Y) + 1 (Y) (Y) - 1 SC (A) (M(DP)) (X) (X) EXOR(j) j = 0 to 3 XAM j (A) (M(DP)) (X) (X) EXOR(j) j = 0 to 3 RAM to register transfer RAR XAMD j (A) (M(DP)) (X) (X) EXOR(j) j = 0 to 3 (Y) (Y) - 1 XAMI j (A) (M(DP)) (X) (X) EXOR(j) j = 0 to 3 (Y) (Y) + 1 Bit operation SB j LGOP RC SZC CMA
Ba Branch operation BL p, a
(PCL) a6-a0 (PCH) p (PCL) a6-a0
BA a BLA p, a
(PCL) (a6-a4, A3-A0) (PCH) p (PCL) (a6-a4, A3-A0) (SP) (SP) + 1 (SK(SP)) (PC) (PCH) 2 (PCL) a6-a0
(A) (A) + (M(DP)) (A) (A) + (M(DP)) + (CY) (CY) Carry Subroutine operation BM a
An
(A) (A) + n n = 0 to 15 (CY) 1 (CY) 0 (CY) = 0 ? (A) (A) CY A3A2A1A0 Logic operation instruction XOR, OR, AND (Mj(DP)) 1 j = 0 to 3 (Mj(DP)) 0 j = 0 to 3 (Mj(DP)) = 0 ? j = 0 to 3
BML p, a (SP) (SP) + 1 (SK(SP)) (PC) (PCH) p (PCL) a6-a0 BMLA p, (SP) (SP) + 1 (SK(SP)) (PC) a (PCH) p (PCL) (a6-a4, A3-A0) RTI (PC) (SK(SP)) (SP) (SP) - 1 (PC) (SK(SP)) (SP) (SP) - 1 (PC) (SK(SP)) (SP) (SP) - 1
RT Return operation
RTS
RB j
SZB j
MITSUBISHI ELECTRIC
33
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
LIST OF INSTRUCTION FUNCTION (CONTINUED)
Grouping Mnemonic
Function INTE 0 INTE 1 (EXF0) = 1 ? After skipping the next instruction (EXF0) 0
Grouping Mnemonic
Function (D) 1 (D(Y)) 0 (Y) = 0 to 3
Grouping Mnemonic
Function (PC) (PC) + 1 RAM back-up (P) = 1 ? (LO) (A1, A0) (V1) (A) (A) (V1) (K0) (A) (A) (K0) (PU0) (A)
DI Interrupt operation EI SNZ0
CLD RD
NOP POF SNZP
SD
(D(Y)) 1 Other operation (Y) = 0 to 3 TLOA TV1A TAV1 TK0A
SZD TAB1 Timer operation (B) (T17-T14) (A) (T13-T10) (R17-R14) (B) (T17-T14) (B) (R13-R10) (A) (T13-T10) (A) SNZ1 (T1F) = 1 ? After skipping the next instruction (T1F) 0 OGA IAG OSA IAS OKA IAK Input/Output operation SCP RCP SNZCP OFA IAF
(D(Y)) = 0 ? (Y) = 0 to 3 (C) 1 (C) 0
T1AB
TAK0 (C) = 1? TPU0A (F) (A1, A0) (A1, A0) (F) (A3, A2) (0) (G) (A) (A) (G) (S) (A) (A) (S) (K) (A0) (A0) (K), (A3, A2, A1) (0)
34
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
INSTRUCTION CODE TABLE
D8-D4 00000 00001 00010 00011 00100 00101 00110 00111 01000 01001 01010 01011 01100 01101 01110 01111 D3- D0 Hex. notation 10000 11000 10111 11111 10 to 1718 to 1F
-
-
00 NOP BA
01 BLA
02 SZB 0 SZB 1 SZB 2
03 BL BL BL BL BL BL BL BL
04
05 BMLA
06 XAM 0 XAM 1 XAM 2 XAM 3
07 BML BML BML BML BML BML BML BML BML BML BML
08
09
0A A 0 A 1 A 2 A 3 A 4 A 5 A 6 A 7 A 8 A 9 A 10 A 11 A 12 A 13 A 14 A 15
0B LA 0 LA 1 LA 2 LA 3 LA 4 LA 5 LA 6 LA 7 LA 8 LA 9 LA 10 LA 11 LA 12 LA 13 LA 14 LA 15
0C LXY 0,0 LXY 0,1 LXY 0,2 LXY 0,3 LXY 0,4 LXY 0,5 LXY 0,6 LXY 0,7 LXY 0,8 LXY 0,9 LXY 0,10 LXY 0,11 LXY 0,12 LXY 0,13 LXY 0,14 LXY 0,15
0D LXY 1,0 LXY 1,1 LXY 1,2 LXY 1,3 LXY 1,4 LXY 1,5 LXY 1,6 LXY 1,7 LXY 1,8 LXY 1,9 LXY 1,10 LXY 1,11 LXY 1,12 LXY 1,13 LXY 1,14 LXY 1,15
0E LXY 2,0 LXY 2,1 LXY 2,2 LXY 2,3 LXY 2,4 LXY 2,5 LXY 2,6 LXY 2,7 LXY 2,8 LXY 2,9
0F LXY 3,0 LXY 3,1 LXY 3,2 LXY 3,3 LXY 3,4 LXY 3,5 LXY 3,6 LXY 3,7 LXY 3,8 LXY 3,9
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
0 1 2 3 4 5 6 7 8 9
OGA TABP 0 OKA SCP RCP OFA T1AB TV1A TK0A TAV1 TAK0 TABP 1 TABP 2 TABP 3 TABP 4 TABP 5 TABP 6 TABP 7 TABP 8 TABP 9 TABP 10 TABP 11
BM
B B B B B B B B B B B
CLD
LGOP
BM BM BM BM BM BM
SNZP
INY
SZB 3 SZD SEAn
DI EI RC SC
RD SD
RT RTS RTI IAS IAF IAK TLOA
TAM 0 TAM 1 TAM 2 TAM 3 XAMI 0 XAMI 1 XAMI 2 XAMI 3
SEAM DEY IAG TDA
BM BM BM BM BM BM BM BM BM
BL BL BL BL BL BL BL RB 0 RB 1 RB 2 RB 3
A B C D E
AM
TEAB TABE OSA
TAB1
LXY LXY 2,10 3,10 LXY LXY 2,11 3,11 LXY LXY 2,12 3,12 LXY LXY 2,13 3,13 LXY LXY 2,14 3,14 LXY LXY 2,15 3,15
AMC TYA POF
BML TPU0A
B B B B B
CMA RAR TAB TAY SZC
SB 0 SB 1 SB 2 SB 3
TABP XAMD BML SNZ1 12 0 XAMD TABP BML SNZCP 1 13 XAMD BML 2 TABP 14
TBA
F
BL
XAMD TABP BML SNZ0 3 15
The above table shows the relationship between machine language codes and machine language instructions. D3-D0 show the low-order 4 bits of the machine language code, and D8-D4 show the high-order 5 bits of the machine language code. The hexadecimal representation of the code is also provided. There are one-word instructions and two-word instructions, but only the first word of each instruction is shown. The codes for the second word of a two-word instruction are described below. BL BML BA BLA BMLA SEA SZD 1 1 1 1 1 0 0 The second word 1aaa aaaa 0aaa aaaa 1aaa 1aaa 0aaa 1011 0010 aaaa pppp pppp nnnn 1011 Do not use the code marked "-."
MITSUBISHI ELECTRIC
35
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MACHINE INSTRUCTIONS
Number of words
Parameter
Instruction code Mnemonic D8 D7 D6 D5 D4 D3 D2 D1 D0 TAB TBA TAY TYA TEAB TABE TDA LXY x, y 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 1 0 1 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 1 1 0 1 1 0 0 0 1 0 0 0 1
Hexadecimal notation
Number of cycles
Function
Type of instructions
01 00 01 00 01 02 02
E E F C A A 9
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
(A) (B) (B) (A) (A) (Y) (Y) (A) (E7-E4) (B) (E3-E0) (A) (B) (E7-E4) (A) (E3-E0) (DR2-DR0) (A2-A0) (X) x, x = 0 to 3 (Y) y, y = 0 to 15
Register to register transfer
x1 x0 y3 y2 y1 y0
0Cy +x
RAM addresses
INY
0
0
0
0
1
0
0
1
1
01
3
1
1
(Y) (Y) + 1
DEY
0
0
0
0
1
0
1
1
1
01
7
1
1
(Y) (Y) - 1
36
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Skip condition
Carry flag CY
Detailed description
- - - - - - - Continuous description
- - - - - - - -
Transfers the contents of register B to register A. Transfers the contents of register A to register B. Transfers the contents of register Y to register A. Transfers the contents of register A to register Y. Transfers the contents of registers A and B to register E. Transfers the contents of register E to registers A and B. Transfers the contents of register A to register D. Loads the value x in the immediate field to register X, and the value y in the immediate field to register Y. When the LXY instructions are continuously coded and executed, only the first LXY instruction is executed and other LXY instructions coded continuously are skipped.
(Y) = 0
-
Adds 1 to the contents of register Y. As a result of addition, when the contents of register Y is 0, the next instruction is skipped.
(Y) = 15
-
Subtracts 1 from the contents of register Y. As a result of subtraction, when the contents of register Y is 15, the next instruction is skipped.
MITSUBISHI ELECTRIC
37
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MACHINE INSTRUCTIONS (CONTINUED)
Number of words
Parameter
Instruction code Mnemonic D8 D7 D6 D5 D4 D3 D2 D1 D0 TAM j 0 0 1 1 0 0 1 j1 j0
Hexadecimal notation
Number of cycles
Function
Type of instructions
06
4 +j
1
1
(A) (M(DP)) (X) (X) EXOR(j) j = 0 to 3
RAM to register transfer
XAM j
0
0
1
1
0
0
0
j1
j0
06
j
1
1
(A) (M(DP)) (X) (X) EXOR(j) j = 0 to 3
XAMD j
0
0
1
1
0
1
1
j1
j0
06C +j
1
1
(A) (M(DP)) (X) (X) EXOR(j) j = 0 to 3 (Y) (Y) - 1
XAMI j
0
0
1
1
0
1
0
j1
j0
06
8 +j
1
1
(A) (M(DP)) (X) (X) EXOR(j) j = 0 to 3 (Y) (Y) + 1
38
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Skip condition
Carry flag CY
Detailed description
-
-
After transferring the contents of M(DP) to register A, an exclusive OR operation is performed between register X and the value j in the immediate field, and stores the result in register X.
-
-
After exchanging the contents of M(DP) with the contents of register A, an exclusive OR operation is performed between register X and the value j in the immediate field, and stores the result in register X.
(Y) = 15
-
After exchanging the contents of M(DP) with the contents of register A, an exclusive OR operation is performed between register X and the value j in the immediate field, and stores the result in register X. Subtracts 1 from the contents of register Y. As a result of subtraction, when the contents of register Y is 15, the next instruction is skipped.
(Y) = 0
-
After exchanging the contents of M(DP) with the contents of register A, an exclusive OR operation is performed between register X and the value j in the immediate field, and stores the result in register X. Adds 1 to the contents of register Y. As a result of addition, when the contents of register Y is 0, the next instruction is skipped.
MITSUBISHI ELECTRIC
39
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MACHINE INSTRUCTIONS (CONTINUED)
Number of words
Parameter
Instruction code Mnemonic D8 D7 D6 D5 D4 D3 D2 D1 D0 LA n 0 1 0 1 1 n3 n2 n1 n0
Hexadecimal notation
Number of cycles
Function
Type of instructions
0Bn
1
1
(A) n n = 0 to 15
TABP p
0
1
0
0
1
p3 p2 p1 p0
09
p
1
3
(SK(SP)) (PC) (SP) (SP) + 1 (PCH) p (PCL) (DR2-DR0, A3-A0) (B) (ROM(PC))7 to 4 (A) (ROM(PC))3 to 0 (SP) (SP) - 1 (PC) (SK(SP)) (Note)
AM Arithmetic operation
0
0
0
0
0
1
0
1
0
00
A
1
1
(A) (A) + (M(DP))
AMC
0
0
0
0
0
1
0
1
1
00
B
1
1
(A) (A) + (M(DP))+ (CY) (CY) Carry
An
0
1
0
1
0
n3 n2 n1 n0
0An
1
1
(A) (A) + n n = 0 to 15
SC RC SZC CMA RAR LGOP
0 0 0 0 0 0
0 0 0 0 0 1
0 0 0 0 0 0
0 0 1 0 0 0
0 0 0 1 1 0
0 0 1 1 1 0
1 1 1 1 1 0
1 1 1 0 0 0
1 0 1 0 1 1
00 00 02 01 01 04
7 6 F C D 1
1 1 1 1 1 1
1 1 1 1 1 1
(CY) 1 (CY) 0 (CY) = 0 ? (A) (A) CY A3A2A1A0 Logic operation instruction XOR, OR, AND
Note : p is 0 to 15 for M34250E2, and p is 0 to 15 for M34250M2.
40
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Skip condition
Carry flag CY
Detailed description
Continuous description
-
Loads the value n in the immediate field to register A. When the LA instructions are continuously coded and executed, only the first LA instruction is executed and other LA instructions coded continuously are skipped.
-
-
Transfers bits 7 to 4 to register B and bits 3 to 0 to register A. These bits 7 to 0 are the ROM pattern in address (DR2 DR1 DR0 A3 A2 A1 A0) specified by registers A and D in page p. When this instruction is executed, 1 stage of stack register is used.
-
-
Adds the contents of M(DP) to register A. Stores the result in register A. The contents of carry flag CY remains unchanged.
-
0/1 Adds the contents of M(DP) and carry flag CY to register A. Stores the result in register A and carry flag CY.
Overflow = 0
-
Adds the value n in the immediate field to register A. The contents of carry flag CY remains unchanged. Skips the next instruction when there is no overflow as the result of operation.
- - (CY) = 0 - - -
1 0 - -
Sets (1) to carry flag CY. Clears (0) to carry flag CY. Skips the next instruction when the contents of carry flag CY is "0." Stores the one`s complement for register A`s contents in register A.
0/1 Rotates 1 bit of the contents of register A including the contents of carry flag CY to the right. - Execute the logic operation selected by logic operation selection register LO between the contents of register A and port S, and stores the result in register A.
MITSUBISHI ELECTRIC
41
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MACHINE INSTRUCTIONS (CONTINUED)
Number of words
Parameter
Instruction code Mnemonic D8 D7 D6 D5 D4 D3 D2 D1 D0 SB j 0 0 1 0 1 1 1 j1 j0
Hexadecimal notation
Number of cycles
Function
Type of instructions
05
C +j
1
1
(Mj(DP)) 1 j = 0 to 3
Bit operation
RB j
0
0
1
0
0
1
1
j1
j0
04
C +j
1
1
(Mj(DP)) 0 j = 0 to 3
SZB j
0
0
0
1
0
0
0
j1
j0
02
j
1
1
(Mj(DP)) = 0 ? j = 0 to 3
SEAM Comparison operation SEA n
0 0 0
0 0 1 1
0 0 0
1 1 1
0 0 1
0 0
1 1
1 0
0 1
02 02
6 5
1 2
1 2
(A) = (M(DP)) ? (A) = n ? n = 0 to 15
n3 n2 n1 n0
0Bn 1 8 +a a 1 1 (PCL) a6-a0
Ba
1
a6 a5 a4 a3 a2 a1 a0
BL p, a
0
0
0
1
1
p3 p2 p1 p0
03
p
2
2
(PCH) p (PCL) a6-a0 (Note)
Branch operation
1
1
a6 a5 a4 a3 a2 a1 a0
18 +a
a
BA a
0 1
0 1
0
0
0
0
0
0
1
00
1
2
2
(PCL) (a6-a4, A3-A0)
a6 a5 a4 a3 a2 a1 a0
18 a +a 01 18 +a 0 p 2 2 (PCH) p (PCL) (a6-a4, A3-A0) (Note)
BLA p, a
0 1
0 1
0
0
1
0
0
0
0
a6 a5 a4 p3 p2 p1 p0
Note : p is 0 to 15 for M34250E2, and p is 0 to 15 for M34250M2.
42
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Skip condition
Carry flag CY
Detailed description
-
-
Sets (1) the contents of bit j (bit specified by the value j in the immediate field) of M(DP).
-
-
Clears (0) the contents of bit j (bit specified by the value j in the immediate field) of M(DP).
(Mj(DP)) = 0 j = 0 to 3 (A) = (M(DP)) (A) = n n = 0 to 15
-
Skips the next instruction when the contents of bit j (bit specified by the value j in the immediate field) of M(DP) is "0."
- -
Skips the next instruction when the contents of register A is equal to the contents of M(DP). Skips the next instruction when the contents of register A is equal to the value n in the immediate field.
-
-
Branch within a page : Branches to address a in the identical page.
-
-
Branch out of a page : Branches to address a in page p.
-
-
Branch within a page : Branches to address (a6 a5 a4 A3 A2 A1 A0) determined by replacing the loworder 4 bits of the address a with register A in the identical page.
-
-
Branch out of a page : Branches to address (a6 a5 a4 A3 A2 A1 A0) determined by replacing the loworder 4 bits of the address a with register A in page p.
MITSUBISHI ELECTRIC
43
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MACHINE INSTRUCTIONS (CONTINUED)
Number of words
Parameter
Instruction code Mnemonic D8 D7 D6 D5 D4 D3 D2 D1 D0 BM a 1 0 a6 a5 a4 a3 a2 a1 a0
Hexadecimal notation
Number of cycles
Function
Type of instructions
1
a
a
1
1
(SK(SP)) (PC) (SP) (SP) + 1 (PCH) 2 (PCL) a6-a0
Subroutine operation
BML p, a
0
0
1
1
1
p3 p2 p1 p0
07
p
2
2
(SK(SP)) (PC) (SP) (SP) + 1 (PCH) p (PCL) a6-a0 (Note)
1
0
a6 a5 a4 a3 a2 a1 a0
1aa
BMLA p, a 0 1
0 0
1
0
1
0
0
0
0
05 1a
0 p
2
2
(SK(SP)) (PC) (SP) (SP) + 1 (PCH) p (PCL) (a6-a4, A3-A0) (Note)
a6 a5 a4 p3 p2 p1 p0
RTI Return operation
0
0
1
0
0
0
1
1
0
04
6
1
1
(PC) (SK(SP)) (SP) (SP) - 1
RT
0
0
1
0
0
0
1
0
0
04
4
1
2
(PC) (SK(SP)) (SP) (SP) - 1
RTS
0
0
1
0
0
0
1
0
1
04
5
1
2
(PC) (SK(SP)) (SP) (SP) - 1
DI Interrupt operation EI SNZ0
0 0 0
0 0 1
0 0 0
0 0 0
0 0 0
0 0 1
1 1 1
0 0 1
0 1 1
00 00
4 5
1 1 1
1 1 1
(INTE) 0 (INTE) 1 (EXF0) = 1 ? After skipping the next instruction (EXF0) 0
08F
Note : p is 0 to 15 for M34250E2, and p is 0 to 15 for M34250M2.
44
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Skip condition
Carry flag CY
Detailed description
-
-
Call the subroutine in page 2 : Calls the subroutine at address a in page 2.
-
-
Call the subroutine : Calls the subroutine at address a in page p.
-
-
Call the subroutine : Calls the subroutine at address (a6 a5 a4 A3 A2 A1 A0) determined by replacing the low-order 4 bits of address a with register A in page p.
-
-
Returns from interrupt service routine to main routine. Returns each value of data pointer (X, Y), carry flag, skip status, NOP mode status by the continuous description of the LA/LXY instruction to the states just before interrupt.
-
-
Returns from subroutine to the routine called the subroutine.
Skip at uncondition
-
Returns from subroutine to the routine called the subroutine, and skips the next instruction at uncondition.
- - (EXF0) = 1
- - -
Clears (0) to the interrupt enable flag INTE, and disables the interrupt. Sets (1) to the interrupt enable flag INTE, and enables the interrupt. Skips the next instruction when the contents of EXF0 flag is "1." After skipping, clears the EXF0 flag.
MITSUBISHI ELECTRIC
45
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MACHINE INSTRUCTIONS (CONTINUED)
Number of words
Parameter
Instruction code Mnemonic D8 D7 D6 D5 D4 D3 D2 D1 D0 TAB1 0 1 0 0 0 1 0 1 0
Hexadecimal notation
Number of cycles
Function
Type of instructions
08A
1
1
(B) (T17-T14) (A) (T13-T10)
Timer operation
T1AB
0
1
0
0
0
0
1
0
1
085
1
1
(R17-R14) (B) (T17-T14) (B) (R13-R10) (A) (T13-T10) (A)
SNZ1
0
1
0
0
0
1
1
0
0
08C
1
1
(T1F) = 1 ? After skipping the next instruction (T1F) 0
CLD RD
0 0
0 0
0 0
0 0
1 1
0 0
0 1
0 0
1 0
011 014
1 1
1 1
(D) 1 (D(Y)) 0 (Y) = 0 to 3 (D(Y)) 1 (Y) = 0 to 3 (D(Y)) = 0 ? (Y) = 0 to 3
Input/Output operation
SD
0
0
0
0
1
0
1
0
1
015
1
1
SZD
0 0
0 0
0 0
1 1
0 0
0 1
1 0
0 1
0 1
024 02B
2
2
46
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Skip condition
Carry flag CY
Detailed description
-
-
Transfers the contents of timer 1 to registers A and B.
-
-
Transfers the contents of registers A and B to timer 1 and timer 1 reload register.
(T1F) = 1
-
Skips the next instruction when the contents of T1F flag is "1." After skipping, clears (0) to T1F flag.
- -
- -
Sets (1) to port D (high-impedance state). Clears (0) to a bit of port D specified by register Y.
-
-
Sets (1) to a bit of port D specified by register Y (high-impedance state).
(D(Y)) = 0 (Y) = 0 to 3
-
Skips the next instruction when a bit of port D specified by register Y is "0."
MITSUBISHI ELECTRIC
47
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MACHINE INSTRUCTIONS (CONTINUED)
Number of words
Parameter
Instruction code Mnemonic D8 D7 D6 D5 D4 D3 D2 D1 D0 OFA IAF OGA IAG 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 1 1 1 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 1 1 1 0 0 0 1 0 1 0 0 1 0 1 0 1 0 0 1 0 0 1 1 1 0 0 0 0 0 0 0 1 1 1 1 0 1 1 0 1
Hexadecimal notation
Number of cycles
Function
Type of instructions
084 056 080 028 01B 055 081 057 082 083 08D 00 00 0 D
1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1
(F) (A1, A0) (A1, A0) (F), (A3, A2) 0 (G) (A) (A) (G) (S) (A) (A) (S) (K) (A0) (A0) (K), (A3-A1) 0 (C) 1 (C) 0 (C) = 1 ? (PC) (PC) + 1 RAM back-up
Input/Output operation
OSA IAS OKA IAK SCP RCP SNZCP NOP POF
SNZP Other operation
0
0
0
0
0
0
0
1
1
00
3
1
1
(P) = 1 ?
TLOA TV1A TAV1 TK0A TAK0 TPU0A
0 0 0 0 0 0
0 1 1 1 1 1
1 0 0 0 0 0
0 0 0 0 0 0
1 0 0 0 0 0
1 0 1 0 1 1
0 1 0 1 0 0
0 1 0 1 0 1
0 0 0 1 1 1
05 08 08 08 08 08
8 6 8 7 9 B
1 1 1 1 1 1
1 1 1 1 1 1
(LO) (A1, A0) (V1) (A) (A) (V1) (K0) (A) (A) (K0) (PU0) (A)
48
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Skip condition
Carry flag CY
Detailed description
- - - - - - - - - - (C) = 1 - -
- - - - - - - - - - - - -
Outputs the contents of register A to port F. Transfers the contents of port F to register A. Outputs the contents of register A to port G. Transfers the contents of port G to register A. Outputs the contents of register A to port S. Transfers the contents of port S to register A. Outputs the contents of register A to port K. Transfers the contents of port K to register A. Sets (1) to port C. Clears (0) to port C. Skips the next instruction when the contents of port C is "1." No operation Puts the system in RAM back-up state.
(P) = 1
-
Skips the next instruction when P flag is "1." After skipping, P flag remains unchanged. Transfers the contents of register A to the logic operation selection register LO. Transfers the contents of register A to register V1. Transfers the contents of register V1 to register A. Transfers the contents of register A to register K0. Transfers the contents of register K0 to register A. Transfers the contents of register A to register PU0.
- - - - - -
- - - - - -
MITSUBISHI ELECTRIC
49
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
CONTROL REGISTERS
Timer control register V1 V13 V12 V11 V10 G1/TOUT pin function selection bit Prescaler/timer 1 operation start bit Timer 1 interrupt enable bit External interrupt enable bit Key-on wakeup control register K0 K03 Prescaler dividing ratio selection bit Interrupt valid waveform for INT pin/ K02 key-on wakeup valid waveform selection bit (Note 2) Ports G1-G3 key-on wakeup control bit Ports S0-S3 key-on wakeup control bit Pull-up control register PU0 PU01 PU00 Ports C and K pull-up transistor control bit Ports G0-G3 pull-up transistor control bit Logic operation selection register LO LO1 Logic operation function selection bits LO0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 at reset : 00002 Port G1 (I/O) TOUT pin (output) / port G1(input) Prescaler stop (initial state) / timer 1 stop (state retained) Prescaler/timer 1 operation Interrupt disabled (SNZ1 instruction is valid) Interrupt enabled (SNZ1 instruction is invalid) Interrupt disabled (SNZ0 instruction is valid) Interrupt enabled (SNZ0 instruction is invalid) at reset : 00002 at RAM back-up : state retained R/W at RAM back-up : 00002 R/W
Instruction clock divided by 4 Instruction clock divided by 512 Rising waveform ("L" "H") Falling waveform ("H" "L") Key-on wakeup not used Key-on wakeup used ("L" level recognized) Key-on wakeup not used Key-on wakeup used ("L" level recognized) at reset : 002 Pull-up transistor ON Pull-up transistor OFF Pull-up transistor ON at reset : 002 at RAM back-up : 002 Functions W at RAM back-up : state retained W
K01 K00
Pull-up transistor OFF
LO1 LO0 0 XOR operation 0 1 OR operation 0
0 AND operation 1 1 Not available 1 Notes 1: "R" represents read enabled, and "W" represents write enabled. 2: Set a value to the bit 2 of register K0, and execute the SNZ0 instruction to clear the EXF0 flag to "0" after executing at least one instruction. According to the input state of G0/INT pin, the external interrupt request flag (EXF0) may be set to "1" when the interrupt valid waveform is changed.
50
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
ABSOLUTE MAXIMUM RATINGS
Symbol Parameter VDD Supply voltage VI Input voltage XIN, G0-G3, D2/C, D3/K VI Input voltage F0, F1, S0-S3, D0, D1, RESET VO Output voltage XOUT VO VO Pd Topr Tstg Output voltage F0, F1, S0-S3, D0, D1 Output voltage G0-G3, D2/C, D3/K Power dissipation Operating temperature range Storage temperature range Conditions Ratings -0.3 to 7.0 -0.3 to VDD+0.3 -0.3 to 8.0 -0.3 to VDD+0.3 Output transistors in cut-off state Ta = 25 C -0.3 to 8.0 -0.3 to VDD+0.3 300 -20 to 85 -40 to 125 Unit V V V V V V
mW C
C
RECOMMENDED OPERATING CONDITIONS
(Ta = -20 C to 85 C, VDD = 2.2 V to 5.5 V, unless otherwise noted) Symbol VDD VRAM VSS VIH VIH VIH VIH VIH VIH VIL VIL VIL VIL Supply voltage RAM back-up voltage (at RAM back-up mode) Supply voltage "H" level input voltage F0, F1, D0, D1 "H" level input voltage G0-G3, D2, D3 "H" level input voltage INT "H" level input voltage C, K "H" level input voltage S0-S3 "H" level input voltage RESET "L" level input voltage C, K "L" level input voltage S0-S3 "L" level input voltage F0, F1, G0-G3, D0-D3 VDD = 4.5 V to 5.5 V VDD = 2.2 V to 5.5 V VDD = 4.5 V to 5.5 V VDD = 2.2 V to 5.5 V Parameter Conditions 0.4 MHz f(XIN) 4.4 MHz 0.4 MHz f(XIN) 1.1 MHz Limits Min. 4.5 2.2 2.0 0 0.7VDD 0.7VDD 0.85VDD 0.5VDD 0.7VDD 0.4VDD 0.6VDD 0.85VDD 0 0 0 0 0 7 VDD VDD VDD VDD 7 7 7 0.16VDD 0.2VDD 0.3VDD 0.15VDD Typ. 5.0 Max. 5.5 5.5 5.5 Unit V V V V V V V V V V V V V V V
"L" level input voltage INT VIL "L" level input voltage RESET IOL(peak) "L" level peak output current F0, F1, S0-S3, D0, D1, D2/C, D3/K IOL(peak) "L" level peak output current G0, G1/TOUT, G2, G3 IOL(avg) "L" level average output current F0, F1, S0-S3, D0, D1, D2/C, D3/K IOL(avg) "L" level average output current G0, G1/TOUT, G2, G3 f(XIN) System clock frequency (Note 2) f(XIN)
V 0.1VDD V 24 mA 10 12 5 4.4 1.1 17 % mA mA mA MHz
(Note 1) (Note 1) VDD = 4.5 V to 5.5 V VDD = 2.2 V to 5.5 V 0.4 0.4 4.0 1.0
Frequency error (errors of external capacitor and resistor VDD = 5 V 10 % Ta = 25 C [reference] not included) Note: Use the 30 pF capacitor externally and enable the (-20 C to 85 C) change of frequency by external resistor. VDD = 3 V 10 %
17
Ta = 25 C [reference] (-20 C to 85 C) Notes 1: Keep the total currents of IOL(avg) for ports S0-S3, D0, D1, D2/C, D3/K to 50 mA or less. Keep the total currents of IOL(avg) for ports F0, F1, G0, G2, G3 and G1/TOUT pin to 30 mA or less. 2: The system clock frequency is affected by the external capacitor, resistor and LSI. Accordingly, set the constants so as not to exceed the frequency limits. Be careful about the input waveform when using the external clock. Refer to the notes on use.
MITSUBISHI ELECTRIC
51
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
ELECTRICAL CHARACTERISTICS
(Ta = -20 C to 85 C, VDD = 2.2 V to 5.5 V, unless otherwise noted) Symbol VOL VOL IIH IIH IIL Parameter "L" level output voltage F0, F1, S0-S3, D0, D1, D2/C, D3/K "L" level output voltage G0, G1/TOUT, G2, G3 "H" level input current F0, F1, S0-S3, D0, D1, RESET "H" level input current G0/INT, G1, G2, G3, D2/C, D3/K "L" level input current F0, F1, S0-S3, D0, D1, D2/C, D3/K, IOZH IOZH IDD G0/INT, G1, G2, G3, RESET Output current at off-state F0, F1, S0-S3, D0, D1 Output current at off-state G0, G1/TOUT, G2, G3, D2/C, D3/K Supply current at active mode at RAM back-up mode VO = VDD VDD = 5 V VDD = 3 V Ta = 25 C VDD = 5 V VDD = 3 V RPU Pull-up transistor VDD = 5 V, VI = 0 V 5 11 0.3 VDD = 5 V VDD = 5 V 0.1 G0/INT, G1, G2, G3, D2/C, D3/K VT+ - VT- Hysteresis INT VT+ - VT- Hysteresis S0-S3 VT+ - VT- Hysteresis RESET f(XIN) = 4.0 MHz f(XIN) = 1.0 MHz 1.5 0.3 0.1 1 5 1 1 10 6 25 VO = 7 V 1 Test conditions VDD = 5 V VDD = 3 V VDD = 5 V VDD = 3 V VI = 7 V VI = VDD VI = 0 V (Note) IOL = 12 mA IOL = 6 mA IOL = 5 mA IOL = 2 mA Limits Min. Typ. Max. 2 0.9 2 0.9 1 1 -1 Unit V V V V
A A A
A A
mA mA
A A A k
V V V V
1.8 VDD = 3 V 0.7 Note: In this case, the pull-up transistors for G0/INT pin and ports G1, G2, G3, D2/C and D3/K are not selected.
52
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
BASIC TIMING DIAGRAM
Machine cycle
Mi T4 T1 T2
Mi+1 T3 T4
Parameter Clock Ports D, C, K output Ports D, C, K input Ports F, G, S output
Pin name
State
XIN D0,D1 D2/C,D3/K D0,D1 D2/C,D3/K F0,F1 G0/INT,G1/TOUT G2, G3 S0-S3 F0,F1 G0/INT,G1/TOUT G2, G3 S0-S3 G0/INT
Ports F, G, S input
Interrupt input
MITSUBISHI ELECTRIC
53
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
BUILT-IN PROM VERSION
In addition to the mask ROM versions, the 4250 Group has the One Time PROM versions whose PROMs can only be written to and not be erased. The built-in PROM version has functions similar to those of the mask ROM versions, but it has PROM mode that enables writing to built-in PROM. Table 15 Product of built-in PROM version PROM size Product (! 9 bits) M34250E2-XXXFP * M34250E2FP * *: Under development 2048 words
Table 15 shows the product of built-in PROM version. Figure 31 and 32 show the pin configurations of built-in PROM versions. The One Time PROM version has pin-compatibility with the mask ROM version.
RAM size (! 4 bits) 64 words
Package
ROM type One Time PROM [shipped after writing]
20P2N-A
(shipped after writing and test in factory) One Time PROM [shipped in blank]
PIN CONFIGURATION (TOP VIEW)
VDD VSS XIN XOUT CNVSS RESET F0 F1 G0/INT G1/TOUT 1 2 20 19 D0 D1 D2/C D3/K S0 S1 S2 S3 G3 G2
M34250E2-XXXFP
3 4 5 6 7 8 9 10
18 17 16 15 14 13 12 11
Outline 20P2N-A
Fig. 31 Pin configuration of built-in PROM version
54
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
PIN CONFIGURATION (TOP VIEW)
VDD VSS V
VDD VSS(0V) X IN X OUT
1 2
20 19
D0 D1 D2/C D3/K S0 S1 S2 S3 G3 G2
M34250E 2-XXXFP
3 4 5 6 7 8 9
18 17 16 15 14 13 12 11
VPP
CNVSS RESET
SCLK SDA PGM VDD
F0 F1
G0/INT
G1/TOUT 10
Outline 20P 2N-A
V : A resistor is connected to XIN pin. A capacitor is connected to XOUT pin. Note: The state of each disconnected pin is the same as that at reset.
Fig. 32 Pin configuration of built-in PROM version (continued)
MITSUBISHI ELECTRIC
55
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(1) PROM mode The 4250 Group has a function to serially input/output the command codes, addresses, and data required for operation (e.g. read and program) on the built-in PROM using only a few pins. This mode can be selected by setting pins SDA (serial data input/output), SCLK (serial clock input), and PGM to "H" after connecting wires as shown in Figure 32 and powering on the VDD pin, and then applying 12 V to the VPP pin. In the PROM mode, three types of software commands (read, program, and program verify) can be used. Clock-synchronous serial I/O is used, beginning from the LSB (LSB first). Use the special-purpose serial programmer when performing serial read/program. Refer to the Mitsubishi Data Book "DEVELOPMENT SUPPORT TOOLS FOR MICROCOMPUTERS" about the serial programmer (serial programmer and control software, etc.) for the Mitsubishi single-chip microcomputers. (2) Notes on handling A high-voltage is used for writing. Take care that overvoltage is not applied. Take care especially at turning on the power. For the One Time PROM version shipped in blank, Mitsubishi Electric corp. does not perform PROM writing test and screening in the assembly process and following processes. In order to improve reliability after writing, performing writing and test according to the flow shown in Figure 33 before using is recommended (Products shipped in blank: PROM contents is not written in factory when shipped)
Writing with PROM programmer
Screening (Leave at 150 C for 40 hours) (Note)
Verify test with PROM programmer
Function test in target device Note: Since the screening temperature is higher than storage temperature, never expose the microcomputer to 150C exceeding 100 hours.
Fig. 33 Flow of writing and test of the product shipped in blank
56
MITSUBISHI ELECTRIC
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Keep safety first in your circuit designs!
* Mitsubishi Electric Corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may lead to personal injury, fire or property damage. Remember to give due consideration to safety when making your circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of non-flammable material or (iii) prevention against any malfunction or mishap.
Notes regarding these materials
* * * These materials are intended as a reference to assist our customers in the selection of the Mitsubishi semiconductor product best suited to the customer's application; they do not convey any license under any intellectual property rights, or any other rights, belonging to Mitsubishi Electric Corporation or a third party. Mitsubishi Electric Corporation assumes no responsibility for any damage, or infringement of any third-party's rights, originating in the use of any product data, diagrams, charts or circuit application examples contained in these materials. All information contained in these materials, including product data, diagrams and charts, represent information on products at the time of publication of these materials, and are subject to change by Mitsubishi Electric Corporation without notice due to product improvements or other reasons. It is therefore recommended that customers contact Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product distributor for the latest product information before purchasing a product listed herein. Mitsubishi Electric Corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake. Please contact Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product distributor when considering the use of a product contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use. The prior written approval of Mitsubishi Electric Corporation is necessary to reprint or reproduce in whole or in part these materials. If these products or technologies are subject to the Japanese export control restrictions, they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination. Any diversion or reexport contrary to the export control laws and regulations of Japan and/or the country of destination is prohibited. Please contact Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product distributor for further details on these materials or the products contained therein.
*
* *
*
(c) 1997 MITSUBISHI ELECTRIC CORP. KI-9711 Printed in Japan (ROD) II New publication, effective Nov. 1997. Specifications subject to change without notice.
REVISION DESCRIPTION LIST
Rev. No. 1.0 First Edition
4250 GROUP DATA SHEET
Revision Description Rev. date 971130
(1/1)


▲Up To Search▲   

 
Price & Availability of M34250E2FP

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X